<?php
/*
 * 接口配置文件
 */
return array(
    	//更新新闻分类
	'/news/updateCategory' => array(
        'method' => 'POST',
		'autoTable' => 'news_category',
		'autoType'  => 'U',
		
		'postMustParams' => array(
			'update_where | NOEMPTY'
		),
		'getMustParams' => array(
			)
    ),
	//删除新闻分类
	'/news/deleteCategory' => array(
        'method' => 'POST',
		'autoTable' => 'news_category',
		'autoType'  => 'D',
		
		'postMustParams' => array(
			'delete_where | NOEMPTY'
		),
		'getMustParams' => array(
			)
    ),
	//查询新闻分类
	'/news/searchCategory' => array(
        'method' => 'ALL',
		'autoTable' => 'news_category',
		'autoType'  => 'R',
		
    ),
	//新增新闻信息
	'/news/add' => array(
        'method' => 'POST',
		'autoTable' => 'news_info',
		'autoType'  => 'C',
		
		'postMustParams' => array(
			'ni_title | NOEMPTY',
			'ni_content | NOEMPTY',
			'ni_uid | NUMBER',
			'ni_ncid | NUMBER'
		),
		'getMustParams' => array(
			)
    ),
	//更新新闻信息
	'/news/update' => array(
        'method' => 'POST',
		'autoTable' => 'news_info',
		'autoType'  => 'U',
		
		'postMustParams' => array(
			'update_where | NOEMPTY'
		),
		'getMustParams' => array(
			)
    ),
	//删除新闻信息
	'/news/delete' => array(
        'method' => 'POST',
		'autoTable' => 'news_info',
		'autoType'  => 'D',
		
		'postMustParams' => array(
			'delete_where | NOEMPTY'
		),
		'getMustParams' => array(
			)
    ),
	//查询新闻信息
	'/news/search' => array(
        'method' => 'ALL',
		'autoTable' => 'news_info',
		'autoType'  => 'R',
		
    ),
	//新增新闻分类
	'/news/addCategory' => array(
        'method' => 'POST',
		'autoTable' => 'news_category',
		'autoType'  => 'C',
		
		'postMustParams' => array(
			'nc_name | NOEMPTY'
		),
		'getMustParams' => array(
			)
    ),
	//查询新闻信息（带发布人，分类相关信息）
	'/news/searchDetail' => array(
        'method' => 'ALL',
		'autoTable' => 'news_v_user_category_info',
		'autoType'  => 'R',
		
    ),
	//新增公告
	'/announcement/add' => array(
        'method' => 'POST',
		'autoTable' => 'easyd_oa_announcement',
		'autoType'  => 'C',
		
    ),
	//删除公告
	'/announcement/delete' => array(
        'method' => 'POST',
		'autoTable' => 'easyd_oa_announcement',
		'autoType'  => 'D',
		
    ),
	//更新公告
	'/announcement/update' => array(
        'method' => 'POST',
		'autoTable' => 'easyd_oa_announcement',
		'autoType'  => 'U',
		
    ),
	//查询公告
	'/announcement/search' => array(
        'method' => 'ALL',
		'autoTable' => 'easyd_oa_announcement',
		'autoType'  => 'R',
		
    ),
	//新增客户
	'/customer/add' => array(
        'method' => 'POST',
		'autoTable' => 'easyd_oa_customer',
		'autoType'  => 'C',
		
    ),
	//删除客户
	'/customer/delete' => array(
        'method' => 'POST',
		'autoTable' => 'easyd_oa_customer',
		'autoType'  => 'D',
		
    ),
	//更新客户信息
	'/customer/update' => array(
        'method' => 'POST',
		'autoTable' => 'easyd_oa_customer',
		'autoType'  => 'U',
		
    ),
	//查询客户
	'/customer/search' => array(
        'method' => 'ALL',
		'autoTable' => 'easyd_oa_customer',
		'autoType'  => 'R',
		
    ),
	//新增客户测试接口
	'/customer/testAdd' => array(
        'method' => 'POST',
    ),
	//查询公告（带发布人信息）
	'/announcement/searchAndUserInfo' => array(
        'method' => 'ALL',
		'autoTable' => 'easyd_oa_announcement,sys_user',
		'autoWhere'  => 'oa_publisher = u_id',
		'autoType'  => 'R',
		
    ),

);